# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# Name:         cacl
# Description:  
# Author:       Administrator
# Date:         2020/2/12
#-------------------------------------------------------------------------------

class Cacl:

	def __init__(self,x,y):
		self.x = x
		self.y = y

	def add(self):
		return self.x + self.y

	def sub(self):
		return self.x - self.y

	def mul(self):
		pass
		# return self.x * self.y

	def div(self):
		return self.x / self.y

if __name__ == '__main__':

	add_data = {'x':10,'y':5,'expect':15}
	c = Cacl(add_data['x'],add_data['y'])
	result = c.add()
	if result == add_data['expect']:
	    print('add test pass')
	else:
		print('add test fail')


